<?php
declare (strict_types = 1);

namespace app\api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class CouponDsecModel extends Model
{
    //
    protected $table='ea_store_coupon';
    public static function coupon($price,$status){
        return self::where('coupon_price',$price)->where('coupon_type',$status)->find();
    }
    public static function selCoupon($id){
        return self::where('id',$id)->find();
    }
    public static function selCoupons($id){
        return self::whereIn('id',$id)->select()->toArray();
    }
}
